<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../js库/mock.js"></script>
    <script src="../../js库/vue.js"></script>
    <title>盒子阴影shadow</title>
    <style>
    
        /*
            盒子阴影 box-shadow  
            box-shadow:h-shadow v-shadow blur spread color inset;
                h-shadow:阴影在盒子的左右边距
                v-shadow:阴影在盒子的上下边距
                blur:模糊效果
                spread:阴影大小
                inset 内阴影 默认为外阴影不能写outset
            盒子阴影不占空间
         */
         * {
            margin: 0; padding: 0;
         }
        div.shadow {
            margin: 0 auto;
            text-align: center;line-height: 200px;
            width: 300px;height: 200px;
            background-color: palevioletred;
             box-shadow: 100px 10px 10px 10px rgba(0, 0, 0, 0.3) ;
        }
        div.shadow2 {
            margin: 0 auto;
            text-align: center;line-height: 200px;
            width: 300px;height: 200px;
            background-color: palevioletred;
             box-shadow: 100px 10px 10px 10px rgba(0, 0, 0, 0.3) ;
        }
        div.hover {
            margin: 0 auto;
            text-align: center;
            width: 300px;height: 200px;line-height: 200px;
            background-color: green;
          
        }
        div.ho:hover {
            box-shadow: 100px 10px 10px 10px rgba(0, 0, 0, 0.3) ;
      
        }
    </style>
</head>

<body>
    <div id="root">
        <div class="shadow">盒子阴影</div>
        <div class="shadow2">盒子阴影</div>
        <div class="hover ho">移动</div>
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>